package com.crazy.writer.handlers.console.action;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.plugin.AbstractUIPlugin;

import com.crazy.writer.demo.TextDialog;


public class SendAction extends Action {
    
    public SendAction() {
        setText("Input");
        setToolTipText("Input message");
        ImageDescriptor image = AbstractUIPlugin.imageDescriptorFromPlugin("com.crazy.writer", "icons/type.png");
        // image = LetterImageFactory.createDescriptor('I',
        // SWT.COLOR_DARK_GRAY);
        
        setImageDescriptor(image);
    }
    
    @Override
    public void run() {
	TextDialog.start();
    }
}
